﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace LPF.Lib.UI
{
    public class TabPage : System.Windows.Forms.TabPage
    {
        private Label lblClose;
        private Label label1;
    
        public int Id { get; set; }

        public TabPage(int id)
        {
            Id = id;
            this.Resize += new EventHandler(TabPage_Resize);
        }

        void TabPage_Resize(object sender, EventArgs e)
        {
            //lblClose.Location = new System.Drawing.Point(Width - 30, 30);
        }

        private void InitializeComponent()
        {
            this.lblClose = new System.Windows.Forms.Label();
            this.SuspendLayout();
            // 
            // lblClose
            // 
            this.lblClose.Location = new System.Drawing.Point(100, 100);
            this.lblClose.Name = "lblClose";
            this.lblClose.Size = new System.Drawing.Size(100, 23);
            this.lblClose.TabIndex = 0;
            this.lblClose.Text = "X";
            this.lblClose.Click += new EventHandler(lblClose_Click);
            this.ResumeLayout(false);

        }

        void lblClose_Click(object sender, EventArgs e)
        {
            MessageBox.Show("Test");
        }
    }
}
